package com.bdqn.mapper;

import com.bdqn.pojo.Sys_user;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface Sys_userMapper {

    @Select("select * FROM sys_user where user_name=#{username} AND password=#{password}")
    Sys_user selectUser(@Param("username") String uname,@Param("password") String pwd);

    @Select("select * from sys_user where user_id=#{userid}")
    Sys_user selectByid(int userid);
}
